package com.nl.controller.web.controller;

import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.web.bind.annotation.RestController;

import com.nl.controller.web.service.SmsUpwardService;

import lombok.extern.slf4j.Slf4j;

@RestController
@Slf4j
public class SmsUpwardController {
	@Autowired
	private SmsUpwardService smsUpwardService;
	
	public static Map<String, String> map = new HashMap<String, String>();
	//第一次延迟30秒后执行，之后按fixedRate的规则每300秒执行一次。
    //@Scheduled(initialDelay = 30000, fixedRate = 50000)
	public void upward(){
		log.info("审核短信上行开始");
		smsUpwardService.upward(map);
	}
}
